﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using WeiXinPF.Model;

namespace WeiXinPF.Modules.Core.Admin.Infrastructure.Repositories
{
    public interface IAdvertisementRepositories
    {
        void Add(advertisement entity);
        void Modify(advertisement entity);
        void Delete(int id);
        void Delete(Expression<Func<advertisement, bool>> predicate);
        IQueryable<advertisement> GetAllList(Expression<Func<advertisement, bool>> predicate);
        IQueryable<advertisement> GetAllList();
        advertisement Get(int id);
        void Delete(advertisement entity);
        void DeleteList(List<advertisement> list);
        void SaveChange();
        void Modify(IQueryable<advertisement> messages);
    }
}
